#!/bin/bash
result=$(grep "search host.com" /etc/resolv.conf)
if [ "${result}"x == x ]; then
    echo search host.com >> /etc/resolv.conf
fi
